﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="QLKetBan.aspx.cs" Inherits="View_Admin_KetBan_QLKetBan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
    <script type="text/javascript" language="javascript">
        function Xoa()
        {
         if (confirm("Bạn chắc có muốn xóa (những) dữ liệu này?")==true)
         return true;
         else
         return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table class="style1">
        <tr>
            <td>
                <asp:Label ID="lblThongBao" runat="server" Font-Italic="True" Font-Size="13px" 
                    ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" DataKeyNames="makb">
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="tennd" HeaderText="Người gửi" />
                        <asp:BoundField DataField="tennd1" HeaderText="Người nhận" />
                        <asp:BoundField DataField="tenquanhe" HeaderText="Quan hệ" />
                        <asp:BoundField DataField="loinhan" HeaderText="Lời nhắn" />
                        <asp:BoundField DataField="tinhtrang" HeaderText="Tình Trạng" />
                        <asp:CommandField EditText="Sửa" SelectText="Sửa" ShowSelectButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:LinkButton ID="btnThem" runat="server">Thêm</asp:LinkButton>
&nbsp;|
                <asp:LinkButton ID="btnXoa" runat="server" OnClientClick="return Xoa();" 
                    onclick="btnXoa_Click">Xóa</asp:LinkButton>
            </td>
        </tr>
    </table>
    </form>
</asp:Content>

